const joi = require('@hapi/joi')

//定义用户名密码验证规则
const _id = joi.string().min(1).required()
const nickname = joi.string().required()
const email = joi.string().email().required()
//定义登陆注册表单数据规则对象
exports.reg_log_schema={
    body:{
        _id,
        nickname,
        email
    }
}